from django.db import models
from django.contrib.auth.models import AbstractUser
from db.base_model import  BaseModel

'''用户模型类'''
class User(AbstractUser,BaseModel):
    '''
    用户模型类
    继承了BaseModel 因此无需集成models.Model
    继承了AbstractUser,是Django自带的用户注册管理系统
    '''
    class Meta:
        '''指定表名,指定制定该表在admin界面的单/复数显示名'''
        db_table = 'df_user'
        verbose_name = '用户'
        verbose_name_plural = verbose_name

